/**
 * 
 */
package t4j.generics;

import java.util.Arrays;
import java.util.List;

/**
 * @author sz
 *
 * create time：2013-1-17
 */
public class CompilerIntelligence {

	public static void main(String[] args) {
		
		List<? extends Fruit> flist = Arrays.asList(new Apple());
		
		Apple a = (Apple) flist.get(0);
		
		flist.contains(new Apple());
		
		flist.indexOf(new Apple());
	}
}
